package com.example.springboot.mapper;

import com.example.springboot.controller.requests.BaseRequst;
import com.example.springboot.controller.requests.UserPageRequst;
import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
@Mapper

public interface UserMapper {
//    @Select("select * from user")
    List<User> list();

    List<User> listBycondition(BaseRequst userPageRequst);

    void save(User user);

    User getByid(Integer id);

    void updateById(User user);

    void deleteByid(Integer id);
}
